
<fieldset><legend>物料需求</legend>
<form id="form_batch">
<table>
	<tr align="center">
		<th><input type="checkbox" class="check" name="chkall" value="on" checked onclick="chkbox(this.form)"></th>
		<th>序号</th>
		<th>名称</th>
		<th>规格</th>
		<th>单位</th>
		<th>单价</th>
		<th>数量</th>
		<th>库存</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} 
	{[assign var="no" value="`$key+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
		<td><input type="checkbox" class="check" name="b_{[$item.id]}" value="{[$item.id]}" checked></td>
		<td>{[$no]}</td>
		<td>{[$item.name|truncate:30:"...":true]}</td>
		<td>{[$item.standard|truncate:21:"...":true]}</td>
		<td>{[$item.unit]}</td>
		<td>{[$item.price|string_price]}</td>
		<td>{[$item.amount|string_float]}</td>
		<td>{[$item.kc]}</td>
	</tr>
	{[/foreach]}
</table>
</form>
</fieldset>

<fieldset><legend>采购信息</legend>
<form id="form_add">
<table>
	<tr>
		<td width="20%" align="right">采购单：</td>
		<td width="80%"><input type="text" name="purchase" id="purchase" value="" size="10"> <select name='purchase_t' id='purchase_t'>			
			<option value="-">请选择</option>
			{[foreach name=outer key=key item=item from=$purchase_option]}
			<option value="{[$item.id]}">{[$item.id]}/{[$item.emp_t]}/{[$item.date]}</option>
			{[/foreach]}
		</select></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td><textarea rows="2" name="content" id="content" cols="55"></textarea></td>
	</tr>
</table>
</form>
</fieldset>

<script type="text/javascript"
	src="js/material/bom/record.js?r={[$smarty.now]}"></script>
